﻿@using Microsoft.AspNetCore.Components.Routing
@namespace BootstrapBlazor.Components
@inherits IdComponentBase

@if(string.IsNullOrWhiteSpace(AnchorTarget))
{
    <NavLink id="@Id" data-title="@Title" class="@ClassString" style="@StyleClassString" href="@To" target="@Target.ToString()" Match="@Match" @onclick="@Clicked">
        @ChildContent
    </NavLink>
}
else
{
    <Anchor id="@Id" data-title="@Title" Target="@AnchorTarget" class="@ClassString" style="@StyleClassString" @onclick="@Clicked">
        @ChildContent
    </Anchor>        
}
